package com.pj.wisdomlogistics.ui.fragment;

import android.view.View;
import android.widget.Toast;

import com.pj.wisdomlogistics.R;
import com.pj.wisdomlogistics.other.EventCenter;
import com.pj.wisdomlogistics.ui.activity.ChooseTakeoutActivity;
import com.pj.wisdomlogistics.ui.activity.MyApplyActivity;
import com.pj.wisdomlogistics.ui.activity.RepairActivity;

import butterknife.OnClick;


public class NormalAccountFragment extends BaseFragment {

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onFirstUserVisible() {

    }

    @Override
    protected void onUserVisible() {

    }

    @Override
    protected void onUserInvisible() {

    }

    @Override
    public int getContentView() {
        return R.layout.fragment_normal_account;
    }

    @Override
    protected boolean isApplyEventBus() {
        return false;
    }

    @Override
    protected boolean isApplyButterKnife() {
        return true;
    }

    @Override
    protected void onEventCome(EventCenter eventCenter) {

    }


    @OnClick({R.id.tv_normal_apply, R.id.tv_normal_wmdc, R.id.tv_normal_whbx, R.id.tv_normal_more})
    public void onViewClicked(View view) {
        //普通帐号
        switch (view.getId()) {
            case R.id.tv_normal_apply:
                //我的申请
                startActivity(MyApplyActivity.class);
                break;
            case R.id.tv_normal_wmdc:
                //外卖点餐
                startActivity(ChooseTakeoutActivity.class);
                break;
            case R.id.tv_normal_whbx:
                startActivity(RepairActivity.class);
                //维护保修
                break;
            case R.id.tv_normal_more:
                //更多内容
                Toast.makeText(getContext(), "开发中。。。", Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
